package com.guigu.yh.springcloud.controller;

import cn.hutool.core.lang.UUID;
import com.guigu.yh.springcloud.common.JsonResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Title TODO 标题
 * @Description TODO 描述
 * @Author 张颖辉（yh）
 * @Date 2022/8/18 22:19
 * @Version 1.0
 */
@Slf4j
@RestController
public class PaymentController {

    @Value("${server.port}")
    private String serverPort;

    @GetMapping("/payment/zk")
    public JsonResult zookeeper() {
        log.info("PaymentController.zookeeper");
        return new JsonResult("200", "serverPort:" + serverPort + "\t" + UUID.randomUUID(), null);
    }
}
